package com.itheima.consumer.config;

import com.itheima.consumer.domain.Goods;
import com.itheima.consumer.feign.GoodsFeignClient;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GoodsFeignClientFallback implements GoodsFeignClient {
    @Override
    public Goods findGoodsById(int id) {
        Goods goods = new Goods();
        goods.setTitle("消费方被降级了~~~");
        return goods;
    }
}
